package com.cndongtai.dao.inter;

import java.util.List;

import com.cndongtai.po.Dtu;

public interface DtuMapper {
	
	public boolean addDtu(Dtu dtu);
	
	public boolean updateDtuLocation(Dtu dtu);
	
	public List<Dtu> queryDtuList();
	
	public List<Dtu> queryDtuListByUserId(Long userId);
	
	public boolean delDtu(Integer dtuId);
	
	public Dtu queryDtuById(Integer dtuId);
	
	public Dtu queryDtuByPanId(String panId);
	
	public int changeLightState(Long dtuId,Integer lightState);
	
	public int changeOnlineState(Long dtuId,Integer onlineState);
	
	public boolean changePanId(Long dtuId, String panId);

}
